<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>显示图片</title>
			<style type="text/css">
			.tu{
				width: 200px;
				margin: auto;
				border: 1px solid red;
			}
		</style>
		<script src="jquery-3.2.1.min.js" type="text/javascript">
		</script>
	
		<script type="text/javascript">
			$(function(){
				$("div").click(function(){
					$("div").addClass("tu")
				});
			});
		</script>
	</head>
	<body>
		<div>
			<img src="img/pic.gif"/>
		</div>
		
	</body>
</html>
